home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / text1 / cms_help_files / ix.helpmark < prev    next >
Text File  |  1991-10-23  |  14KB  |  312 lines

  1. +-----------------------------------------------------------------------------+
  2. |                                    index                                    |
  3. +-----------------------------------------------------------------------------+
  4.  
  5. Abbreviation:  π|\ixπ%
  6.  
  7. Parameters:    π|title textπ%
  8.  
  9. Submarkup:     π|\subentry, \blindentry, \uspn, \bdpn, \itpnπ%
  10.  
  11.     π|Description:π%
  12. The \index  markup builds index entries  which can be sorted  and printed at
  13. the end of a document.  The \index markup has the format
  14.  
  15. \indexn{entry}
  16.  
  17. where  "n" is  the index  number (1,  2,  or 3),  and  "entry" is  the index
  18. entry.  The  page number you are on when  the \index markup is inserted will
  19. be printed with  the "entry".   You must use the  \printindex markup to sort
  20. and print the  index.  It  comes at the end  of the document.   Refer to the
  21. documentation of \printindex for details on this markup.
  22.  
  23.     π|Example:π%
  24. Consider this index example:
  25.  
  26. The files you create and change have a filemode of A.
  27. This means that they are all kept in a collection of
  28. files called your A-disk. The FILELIST command
  29. displays a list of all
  30. \index1{A-disk}
  31. the files on your A-disk.
  32.  
  33. In the document, the following would print where the index markup occurred,
  34.  
  35. +-----------------------------------------------------------------------------+
  36. |                                                                             |
  37. |     The files  you  create and  change have  a filemode  of A.  This means  |
  38. | that they are all  kept in a collection of files called  your A-disk.  The  |
  39. | FILELIST command displays a list of all the files on your A-disk.           |
  40. +-----------------------------------------------------------------------------+
  41.  
  42. If  this  occurred  on  page  32,  the  entry  in  the  index  printed  with
  43. \printindex1 would print as illustrated on the next page.
  44.  
  45. +-----------------------------------------------------------------------------+
  46. |     A-disk, 32                                                              |
  47. +-----------------------------------------------------------------------------+
  48.  
  49.     π|Notes:π%
  50. You cannot use \index within a \settabs or \halign.
  51.  
  52. π|Lower Level or Sub entriesπ%
  53.  
  54.     If you  want to  record a  subentry to  a main index  entry you  use the
  55. \subentry markup within the \index markup.
  56.  
  57.     π|Notes:π%
  58. The \subentry markup is only valid when used within \index.
  59.  
  60.     π|Example:π%
  61. If you had a main entry  called "reader list" and you wanted sub entries for
  62. "receiving a file" and "replacing  a file" you could enter the \index markup
  63. as illustrated here:
  64.  
  65. \sha{Receiving a File}
  66. To receive a file, move the cursor to the line that
  67. describes the file you want to receive.
  68. \index1{reader list \subentry1{receiving a file}}
  69. Then press PF9. A notice will appear on that line
  70. telling you that the file has been received, . . .
  71. \sha{Replacing or Renaming a File}
  72. What happens if the file in your reader has the same file
  73. label as one you already have on your disk?
  74. There are two ways to handle this.
  75. \lib\lil1
  76. If you want the file in your reader to replace the file
  77. \index1{reader list \subentry1{replacing a file}}
  78. on your disk, type the command "receive / (replace".
  79. \lil1
  80.  
  81. If you want to keep the file on your disk, then rename
  82. the file in your reader with the command "receive / newname
  83. \index1{reader list\subentry1{renaming a file}}
  84. newtype" where "newname" is the new file name and
  85. "newtype" is the new filetype.
  86. \lie
  87.  
  88. This would produce the following paragraph in a document:
  89.  
  90. +-----------------------------------------------------------------------------+
  91. |                                                                             |
  92. | Receiving a File                                                            |
  93. |     To receive a file, move the cursor to the line that describes the file  |
  94. | you want to receive.   Then press PF9.  A  notice will appear on that line  |
  95. | telling you that the file has been received, ...                            |
  96. |                                                                             |
  97. | Replacing or Renaming a File                                                |
  98. |     What happens if the file in your reader has the same file label as one  |
  99. | you already have on your disk?  There are two ways to handle this.          |
  100. |   1. If you want the file in your reader to replace the file on your disk,  |
  101. |      type the command "receive / (replace".                                 |
  102. |   2. If you  want to  keep the  file on  your disk,  then rename  the file  |
  103. |      in your  reader with  the command  "receive / newname  newtype" where  |
  104. |      "newname" is the new file name and "newtype" is the new filetype.      |
  105. |                                                                             |
  106. +-----------------------------------------------------------------------------+
  107.  
  108. If list level #2 printed at the top of page 33, the index entries would look
  109. like:
  110.  
  111. +-----------------------------------------------------------------------------+
  112. |                                                                             |
  113. |   reader list                                                               |
  114. |    receiving a file, 32                                                     |
  115. |    renaming a file, 33                                                      |
  116. |    replacing a file, 32                                                     |
  117. |                                                                             |
  118. +-----------------------------------------------------------------------------+
  119.  
  120. π|Excluding Text from the Sortπ%
  121.     There are occasions when you will want text to print in an indexed item,
  122. but you  do not want  that text to be  a part of  the sorting process.   For
  123. example, you  may want  to index the  title "Consumer  Guides" including the
  124. quotes, but you  want it sorted with the C's and  not sorted with the double
  125. quote marks.   Also, you probably would want to  sort \par with the p's, and
  126. not with the backslashes.   Both can be accomplished using the \sortasmarkup
  127. which can only be used within the \index markup.
  128.  
  129.     π|Example:π%
  130. Using the input,
  131.  
  132. Please get a copy of the article "Consumer Guides" and
  133. \index1{"Consumer Guides"\sortas{Consumer Guides}}
  134. refer to the illustration on page 5.
  135. \par
  136. Be sure to index the paragraph command "\\par"
  137. \index1{\\par\sortas{par}}
  138. somewhere in the document.
  139.  
  140. you would get the following two paragraphs in your document.
  141.  
  142. +-----------------------------------------------------------------------------+
  143. |                                                                             |
  144. |     Please get a copy of the article "Consumer Guide References" and refer  |
  145. | to the illustration on page 5.                                              |
  146. |                                                                             |
  147. |     Be  sure  to index  the  paragraph  command  "\par"  somewhere in  the  |
  148. | document.                                                                   |
  149. |                                                                             |
  150. +-----------------------------------------------------------------------------+
  151.  
  152. The index entries would print like:
  153.  
  154. +-----------------------------------------------------------------------------+
  155. |                                                                             |
  156. |     "Consumer Guides", 45                                                   |
  157. |     contour Maps, 23                                                        |
  158. |                                                                             |
  159. |     \par, 45                                                                |
  160. |     Paragraphs, long, 16                                                    |
  161. |                                                                             |
  162. +-----------------------------------------------------------------------------+
  163.  
  164.     π|Example:π%
  165. Prepositions  in a  subentry may  not be  part of  the sort,  but are  to be
  166. printed in the index.  For example, to get the index to look like,
  167.  
  168. +-----------------------------------------------------------------------------+
  169. |                                                                             |
  170. | vacations                                                                   |
  171. |     on boats, 32                                                            |
  172. |     at the Olympian, 21                                                     |
  173. |                                                                             |
  174. +-----------------------------------------------------------------------------+
  175.  
  176. you would use the \index, \subentry, and \sortas commands illustrated on the
  177. next page.
  178.  
  179. Some people spend their vacations at older
  180. hotels like the Olympian.
  181. \index1{vacations \subentry1{at the
  182. Olympian\sortas{Olympian}}}
  183.  
  184. Another popular vacation is travelling the
  185. Pacific in a boat.
  186. \ix1{vacations\subentry1{on
  187.       boats\sortas{boats}}}
  188.  
  189.     π|Example:π%
  190. As another  example, "10  Downing Street" is  typically sorted  with the T's
  191. and not prior to  the 2's.  This can  also be accomplished using the \sortas
  192. markup.   For example, the Prime Minister's  address mentioned earlier would
  193. be entered as:
  194.  
  195. Taxi, please take me to 10 Downing Street.
  196.  
  197. \index1{10 Downing Street\sortas{ten Downing Street}}
  198.  
  199. π|Highlighted Page Numbersπ%
  200.     For those  applications which  require some  of the  page numbers  to be
  201. printed in  bold, some in italics,  and others underscored,  there are three
  202. markup available to  do this.   They are \boldpagenumber, \italicpagenumber,
  203. and \underscorepagenumber.  They  are all used within the \index markup, and
  204. indicate to TEXT1 that a page  number other than the standard page number is
  205. to be used.
  206.     We  recommend that  important references  be  noted in  bold (\boldpage-
  207. number).   Fleeting references be  printed with italics (\italicpagenumber).
  208. And primary  references be indicated by  being underscored (\underscorepage-
  209. number).   Of  course, you  are free to  use these  three markup as  you see
  210. fit.
  211.     The bold page number will always come prior to a standard face reference
  212. to the same page.
  213.  
  214.     π|Example:π%
  215. If you  had an \boldpagenumber on  page 43 and \index's  on pages 42--44 for
  216. "peace."
  217.  
  218. \index1{peace}             % Located on page 42
  219.  
  220. \index1{peace}             % Located on page 43
  221. \index1{peace\bdpn}   % Located on page 43
  222.  
  223. \index1{peace}             % Located on page 44
  224.  
  225. the index printed with \printindex would look like:
  226.  
  227. +-----------------------------------------------------------------------------+
  228. |     peace 43, 42--44                                                        |
  229. +-----------------------------------------------------------------------------+
  230.  
  231.     π|Example:π%
  232. If you have an  underscored page number and it falls  in the same range as a
  233. standard face  entry, the underscored  entry would follow  the standard face
  234. entry.   For  example, if  you had  a \underscorepagenumber  on page  66 and
  235. \index's on pages 66--72 for "nationalism",
  236.  
  237. \index1{nationalism\uspn} % On page 66
  238. \index1{nationalism}               % On page 66
  239. \index1{nationalism}               % On page 67
  240. \index1{nationalism}               % On page 72
  241.  
  242. the index sequence would print like:
  243.  
  244. +-----------------------------------------------------------------------------+
  245. |     Quick Programming Language 66--72, 66                                   |
  246. +-----------------------------------------------------------------------------+
  247.  
  248.     π|Example:π%
  249. If you have an index reference  in italics and it falls in the same range as
  250. a standard face entry, the italics  entry will not be printed.  For example,
  251. if you had an italics entry  using \italicpagenumber on pages 45 and 56, and
  252. you had standard face entries on pages 54--60 for "In Search of Excellence",
  253. the printed index would look like:
  254.  
  255. +-----------------------------------------------------------------------------+
  256. |                                                                             |
  257. |     In Search of Excellence 45, 54--60                                      |
  258. |                                                                             |
  259. +-----------------------------------------------------------------------------+
  260.  
  261. π|Cross Referencesπ%
  262.     Often it is desirable to  have a cross reference to another index entry.
  263. You can do this using the  \blindentry markup within the \index markup.  You
  264. cannot use  both \blindentry  and \subentry  within the same  \index markup.
  265. The \blindentry markup has the format,
  266.  
  267. \blindentry{blind entry}
  268.  
  269. where "blind entry" is the text you want associated with that index entry.
  270.  
  271.     π|Example:π%
  272. For example, to get an index entry to print like
  273.  
  274. +-----------------------------------------------------------------------------+
  275. |                                                                             |
  276. |                                                                             |
  277. |     Flow of control, see Control Structures                                 |
  278. +-----------------------------------------------------------------------------+
  279.  
  280. you would enter
  281.  
  282. \index1{Flow of control\blindentry{see Control
  283. Structures}}
  284.  
  285.     π|Example:π%
  286. It is also possible  to have a blind entry printed  with an index entry, and
  287. still have it indexed with page numbers.  For example, if you were to enter
  288.  
  289. \index1{Label\uspn}
  290. \index1{Label\blindentry{({\it see also} Case Label)}}
  291.  
  292. on page 78 you would get an index entry printed as:
  293.  
  294. +-----------------------------------------------------------------------------+
  295. |     Label, 78, (see also Case Label)                                        |
  296. +-----------------------------------------------------------------------------+
  297.  
  298.     π|Notes:π%
  299. If you have page numbers and a blind entry, then the blind entry will follow
  300. the last page number as illustrated here.
  301.  
  302. π|Multiple Indexesπ%
  303.     You can have  multiple indexes by changing the "1"  in \index1 to "2" or
  304. "3".  For example,
  305.  
  306. \index1{entry in first index}
  307. \index2{entry in second index}
  308. \index3{entry in third index}
  309.  
  310. will generate  one entry  in each  of three  indexes.   See  \printindex for
  311. instructions on how to print out each of the three indexes.
  312.